package com.kk.springboot_001.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.kk.springboot_001.pojo.User;
import com.kk.springboot_001.pojo.dto.LoginDto;
import com.kk.springboot_001.pojo.dto.LoginResponseDto;
import com.kk.springboot_001.pojo.dto.UserDto;
import com.kk.springboot_001.pojo.dto.UserUpdateDto;

import java.util.List;

public interface UserService {
    User add(UserDto userdto);

    User getUser(Integer userId);

    User update(UserUpdateDto updateDto);

    void delete(Integer userId);

//    LoginResponseDto login(LoginDto loginDto);

    Integer getUserIdByUserName(String userName);
}
